/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package control.accion;

import control.SIRHApp;
import frontera.interfaz.panel.PanelCrearEmpleado;
import java.awt.event.ActionEvent;
import javax.swing.AbstractAction;
import javax.swing.Action;
import javax.swing.ImageIcon;

/**
 *
 * @author tuareg
 */
public class EmpleadoNuevo extends AbstractAction {
     public EmpleadoNuevo(){
         super("NUEVO");
         putValue(Action.SMALL_ICON, new ImageIcon(getClass().getResource("/frontera/recursos/AddEmpleadoSmall.png")));
     }

    public void actionPerformed(ActionEvent e) {
        SIRHApp.getInstance().getVentanaPrincipal().setPanelPersonalEmpleado(new PanelCrearEmpleado());
    }
}
